import CommonPanel from './CommonPanel';
import {wrapperType, EnumControlType, ITabsFields, layouts, ITabPanel} from "@/pages/dv/constants/EnumCommon";
import EnumFieldsConfig from './EnumFieldsConfig';
export default class Text extends CommonPanel{

  /**
   * 基础配置枚举
   */
  getPrivatePanes(): ITabPanel[] {
    return [
      {title: '常用', value: 'src', fields: this.otherConfig()},
      {title: '样式', value: 'style', fields: EnumFieldsConfig.style()},
    ]
  }


  otherConfig(): ITabsFields[]{
    return [
      {
        formItemProps: {
          name: 'text',
          label: '文本内容'
        },
        layout: layouts.vertical,
        controlType: EnumControlType.TextArea,
      },
    ]
  }
}
